def main():
    a = []
    for i in range(10):
        a.append(int(input()))
    s = max(a)
    print(s)


main()
